/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 导航栏样式 */
header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 100%; /* 确保容器占满宽度 */
    max-width: none; /* 移除最大宽度限制 */
    margin: 0; /* 清除居中外边距 */
    display: flex;
    justify-content: space-between !important; /* 元素向两端对齐 */
    align-items: center;
    padding: 0 20px; 
    margin: 0 20px 0 auto; /* 右边距20px，其他方向0 */
    display: flex;
    justify-content: space-between !important;
    align-items: center;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
}

/* 用户头像容器样式 */
.user-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #D4AF37;
    margin-right: 8px;
    object-fit: cover;
}

#username-display {
    color: white;
    font-size: 14px;
    margin-right: 8px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #D4AF37;
    border-radius: 5px;
    padding: 10px 0;
    min-width: 120px;
    display: none;
    z-index: 1000;
}

.user-avatar-container:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: rgba(212, 175, 55, 0.3);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #D4AF37;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    color: white;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover,
.close:focus {
    color: #D4AF37;
}

/* 认证标签样式 */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

.auth-tab {
    background: none;
    border: none;
    color: #888;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.auth-tab.active {
    color: #D4AF37;
    border-bottom: 2px solid #D4AF37;
}

.auth-tab:hover {
    color: #D4AF37;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: white;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #D4AF37;
}

/* 主视觉区域样式 */
.hero {
    min-height: 100vh;
    position: relative;
    height: 100vh;
    background-image: url('../images/main.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    text-align: left;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: #D4AF37;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #B8860B;
}

/* 新闻链接样式 */
.news a {
    color: white;
    text-decoration: none;
    border: 1px solid #ACACAC;
    padding: 10px 20px;
    border-radius: 5px;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.team-members {
    padding: 60px 20px;
    background-color: #000;
    color: white;
    text-align: center;
}

.team-header {
    margin-bottom: 40px;
}

.team-header h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.back-button {
    display: inline-block;
    background-color: #131b01;
    color: white;
    padding: 8px 25px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 30px;
}

.members-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.member-card {
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
}

/* 添加团队成员卡片悬停效果 */
.member-card:hover {
    transform: translateY(-10px); /* 向上移动10px */
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); /* 添加金色调阴影与功能卡片保持风格一致 */
}

.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #D4AF37;
    transition: transform 0.3s ease; /* 头像缩放过渡效果 */
}

/* 头像悬停放大效果 */
.member-card:hover .member-img {
    transform: scale(1.05); /* 头像略微放大 */
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #D4AF37;
}

.member-info .bio {
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
}

/* 功能卡片样式 */
.feature-cards {
    background-color: #0b0f00;
    padding: 40px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cards-container {
    width: 300px;
    height: 450px;
}

.feature-card {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
}

/* 添加卡片悬停效果 */
.feature-card:hover {
    transform: translateY(-10px); /* 向上移动10px */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* 添加阴影增强立体感 */
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.card-content p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-btn {
    display: inline-block;
    background-color: #36581d;
    color: white;
    padding: 12px 0;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
    font-size: 16px;
    margin-top: auto;
}

.card-btn:hover {
    background-color: #1e3e0d;
}

nav ul li.search-item {
    margin-left: 30px;
}

.search-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    color: white;
    font-size: 14px;
    width: 150px;
    transition: width 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    width: 200px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .members-container {
        flex-direction: column;
        align-items: center;
    }
    .cards-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

.member-link {
    text-decoration: none; /* 移除下划线 */
    color: inherit; /* 继承父元素颜色 */
    display: block; /* 使链接成为块级元素 */
}

/* 增强点击反馈 */
.member-card:active {
    transform: translateY(-5px); /* 点击时略微下移 */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10; /* 确保粒子效果在背景层，不遮挡导航栏 */
  pointer-events: none; /* 允许点击穿透粒子容器 */
}